package com.lovepick.bean;

import java.io.Serializable;
import java.util.List;

import com.baidu.mapapi.GeoPoint;


public class Order implements Serializable
{
	public class OrderUpdate
	{
		public int orderIdUp;
		public String stateUp;
	}

	public static final String ORDER_DRIVER_TABLE = "order_driver";
	public static final String ORDER_PASSENGER_TABLE = "order_passenger";
	public static final String ROLE = "role";
	public static final String ORDER_ID = "orderID";
	public static final String MEM_ID = "memID";
	public static final String NICKNAME = "nickName";
	public static final String GOTIME = "goTime";
	public static final String SRC = "src";
	public static final String SLAT = "slat";
	public static final String SLNG = "slng";
	public static final String DEST = "dest";
	public static final String DLAT = "dlat";
	public static final String DLNG = "dlng";
	public static final String MONEY = "money";
	public static final String OFFSET = "offset";
	public static final String COUNT = "count";
	public static final String PEERID = "peerID";
	public static final String STATE = "state";
	public static final String POINTS = "points";
	public static final String DATE = "date";
	public static final String TIME = "time";
	public static final String PHONE = "phone";


	public static final String POINT_TYPE = "point_type";
	public static final String ADDR_NAME = "addr_name";
	public static final String LAT = "lat";
	public static final String LNG = "lng";

	public static final int OFFSET_MIN = 1;
	public static final int OFFSET_MAX = 59;
	public static final int OFFSET_DEFAULT = 20;
	public static final int MONEY_MIN = 1;
	public static final int MONEY_MAX = 100;
	public static final int MONEY_DEFAULT = 10;
	public static final int COUNT_MIN = 1;
	public static final int COUNT_MAX = 20;
	public static final int COUNT_DEFAULT_PASSENGER = 1;
	public static final int COUNT_DEFAULT_DRIVER = 10;

	private static final long serialVersionUID = -6931695641161567659L;

	private String nickName;		// 订单用户昵称
	private int userID;				// 订单用户ID(memID)
	private int orderID;			// 订单ID
	private String src;				// 起点
	private double slat;			// 起点纬度
	private double slng;			// 起点经度
	private String dest;			// 终点
	private double dlat;			// 终点纬度
	private double dlng;			// 终点经度
	private String goTime;			// 出发时间
	private int offset;				// 浮动时间
	private int money;				// 单价
	private int count;				// 座位数量
	private String state;			// 订单状态
	private String phone;			// 订单用户的电话号码
	private List<GeoPoint> points;	// 规划的路线信息
	private boolean isChecked;		// 在ListView中呈现是否被选中


	public String getNickName()
	{
		return nickName;
	}

	public void setNickName(String nickName)
	{
		this.nickName = nickName;
	}

	public int getUserID()
	{
		return userID;
	}

	public void setUserID(int userID)
	{
		this.userID = userID;
	}

	public int getOrderID()
	{
		return orderID;
	}

	public void setOrderID(int orderID)
	{
		this.orderID = orderID;
	}

	public String getSrc()
	{
		return src;
	}

	public void setSrc(String src)
	{
		this.src = src;
	}

	public double getSlat()
	{
		return slat;
	}

	public void setSlat(double slat)
	{
		this.slat = slat;
	}

	public double getSlng()
	{
		return slng;
	}

	public void setSlng(double slng)
	{
		this.slng = slng;
	}

	public String getDest()
	{
		return dest;
	}

	public void setDest(String dest)
	{
		this.dest = dest;
	}

	public double getDlat()
	{
		return dlat;
	}

	public void setDlat(double dlat)
	{
		this.dlat = dlat;
	}

	public double getDlng()
	{
		return dlng;
	}

	public void setDlng(double dlng)
	{
		this.dlng = dlng;
	}

	public String getGoTime()
	{
		return goTime;
	}

	public void setGoTime(String goTime)
	{
		this.goTime = goTime;
	}

	public int getOffset()
	{
		return offset;
	}

	public void setOffset(int offset)
	{
		this.offset = offset;
	}

	public int getMoney()
	{
		return money;
	}

	public void setMoney(int money)
	{
		this.money = money;
	}

	public int getCount()
	{
		return count;
	}

	public void setCount(int count)
	{
		this.count = count;
	}

	public String getState()
	{
		return state;
	}

	public void setState(String state)
	{
		this.state = state;
	}

	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public List<GeoPoint> getPoints()
	{
		return points;
	}

	public void setPoints(List<GeoPoint> points)
	{
		this.points = points;
	}

	public boolean isChecked()
	{
		return isChecked;
	}

	public void setChecked(boolean isChecked)
	{
		this.isChecked = isChecked;
	}

	@Override
	public String toString()
	{
		String str = "";
		str += "{";
		str += ORDER_ID + ":" + orderID + ",";
		str += SRC + ":" + src + ",";
		str += DEST + ":" + dest + ",";
		str += STATE + ":" + state;
		str += "}";
		return str;
	}
}
